Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: link scheduling #75

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

feat: link scheduling #75

wants to merge 7 commits into from

Conversation

AfonsoMartins26
Copy link

No description provided.

@AfonsoMartins26 AfonsoMartins26 linked an issue Sep 18, 2024 that may be closed by this pull request
@AfonsoMartins26 AfonsoMartins26 changed the title Feat: update list_unarchived_links_by_index Link scheduling Sep 18, 2024
@AfonsoMartins26 AfonsoMartins26 marked this pull request as draft September 18, 2024 20:59
@AfonsoMartins26 AfonsoMartins26 changed the title Link scheduling feat: link scheduling Sep 18, 2024
@AfonsoMartins26 AfonsoMartins26 marked this pull request as ready for review September 19, 2024 10:28
lib/cesium_link/links.ex Outdated Show resolved Hide resolved
Copy link
Member

@joaodiaslobo joaodiaslobo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great! 🤩
Can you add a timer to links that have been scheduled and maybe reduce their opacity while not published?
Something like this:
image

@AfonsoMartins26 AfonsoMartins26 requested review from joaodiaslobo and removed request for JulioJPinto September 23, 2024 17:49
@AfonsoMartins26
Copy link
Author

AfonsoMartins26 commented Sep 27, 2024

Works great! 🤩 Can you add a timer to links that have been scheduled and maybe reduce their opacity while not published? Something like this: image

The opacity is working but it doesn't go away when the link gets to the home page.... 😿

Comment on lines +18 to +19
<:col :let={{_id, _link}}>
<% publish_future = _link.publish_at && DateTime.compare(_link.publish_at, DateTime.utc_now()) == :gt %>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<:col :let={{_id, _link}}>
<% publish_future = _link.publish_at && DateTime.compare(_link.publish_at, DateTime.utc_now()) == :gt %>
<:col :let={{_id, link}}>
<% publish_future = link.publish_at && DateTime.compare(link.publish_at, DateTime.utc_now()) == :gt %>

Copy link
Member

@joaodiaslobo joaodiaslobo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything backend-wise is great! Good job!
Now, to represent a scheduled link on the backoffice table, we should probably use JavaScript to make it more interactive and up to date. Learn more about Phoenix hooks here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Link scheduling
3 participants